home *** CD-ROM | disk | FTP | other *** search
- Path: news.iadfw.net!usenet
- From: Mark Nelson <markn@airmail.net>
- Newsgroups: comp.lang.c++
- Subject: Re: Borland library Q
- Date: Wed, 28 Feb 1996 18:19:18 -0600
- Organization: customer of Internet America
- Message-ID: <3134F106.3C08@airmail.net>
- References: <4h2lgs$te@darkstar.UCSC.EDU>
- NNTP-Posting-Host: dal09-22.ppp.iadfw.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
-
- Ray Swartz wrote:
- >
- > Here is what I did:
- >
- > 1) wrote the routine in a .cpp file (getentry.cpp)
- >
- > 2) compiled it to a .obj file
- >
- > 3) ran the command: tlib raylib getentry
- >
- > 4) added raylib.lib to my library path in the IDE (Options|Project|Linker)
- >
- > 5) tried to compile a program needing getentry().
-
- Hi Ray,
-
- I use the Borland librarian a lot. What you are doing looks
- more or less correct, (except it should be 'tlib raylib +getentry.obj')
- but there are a number of things you can do to check it out.
-
- First, make sure raylib.lib exists.
-
- Second, get a listing of the library contents by
- doing this: 'tlib raylib,con'
-
- Do you see that getentry.obj is in the lib?
- Do you see that getentry() is a public in the lib?
-
- Third, make sure you aren't the victim of name mangling. Is
- your program a C program looking for a C++ function?
-
- Fourth, make sure you aren't a victing of upper/lower case
- confusion. You should be doing a case sensitive compile and
- link for both programs.
-
- Finally, try building your same program from the command line:
-
- bcc test.cpp raylib.lib
-
- Hope this helps.
-
- Mark Nelson
- http://web2.airmail.net/markn
-